﻿@using MobileStore.Bussiness.Models
@{
    List<Product> ListProducts = ViewData["ListProducts"] as List<Product>;    
}
  

  <ul>
       
        @foreach (Product pr in ListProducts)
        {
            <li> <a class="product_image" href="@Url.Action("ViewDetail", "ProductDetail", new { ID = @pr.ProductID })"><img alt="@pr.Name" src="@Url.Content(pr.ImageSource)"/></a>
                <div class="product_info">
                    <h3><a href="@Url.Action("ViewDetail", "ProductDetail",new {ID=@pr.ProductID})">@pr.Name</a></h3>
                    <small>@pr.Description</small> </div>
                <div class="price_info"> 
                    <button class="price_add" id="product-@pr.ProductID" title="" type="button"><span class="pr_price">@pr.ListedPrice.000</span><span class="pr_add" data-post-url="@Url.Action("AddToCart", "Cart")">Đặt mua</span></button>
                </div>
            </li>
        }

    </ul>

